
<div data-page="<{$pageName}>" class="page" >
				<div class="page-content" style="background-color:#fff; ">
								<style>
	 .block_div{  padding:10px; background-color:#fff; margin-top:10px;border-bottom:1px dotted #EAEAEA}
		.light{ color:#A0A0A0}
		.cart_item .row{ border-bottom:1px dotted #EAEAEA}
		.buy_select{ color:#337ab7; background-color:#fff;border-bottom:1px dotted #EAEAEA;  margin-top:10px;}
		
 </style>
								<input type="hidden" id="goods_amount" value="<{$subject_info.price}>" />
								<!-- <div class="modal-header label-primary">
              
              <p class="modal-title" id="myModalLabel" style="color:#fff">开通课程</p>
            </div>-->
								<div class="block_div" style="background-color:#EAF0E1; margin-top:0px">
												<div class="cart_item"> 
																<!--x课程-->
																<div class="row">
																				<div class="col-xs-3" style="margin-top:10px"> <img style="max-width:100%"  src="__Img__/<{$subject_info.picname}>@160h_270w_1e_0c" /> </div>
																				<div class="col-xs-6">
																								<h4 class="f24"> <{$subject_info.subject}> </h4>
																								<p class="muted  mgt20">课时安排</p>
																								<div class="info_content"> <{$subject_info.class_hours}>课时 <span class="muted light">/</span> 报名即学 至 <{$subject_info.end_date}> </div>
																				</div>
																				<div class="col-xs-2 s_right" style="text-align:right; float:right; margin-top:40px"> 价格： <span class="f24 red"><{$subject_info.price}></span> 元</div>
																</div>
																<!--x线下班级-->
																<if condition="$offline_subject['offline'] gt 1">
																<div class="row <if condition="$select_offline eq 3">buy_select
																				</if>
																				"  id="buy_select_offline_fee"
																				<if condition="$offline_subject['offline'] eq 2">onclick="add_buy(this)"</if>
																				style="padding:10px 0px; cursor:pointer" price="<{$offline_subject.price}>">
																				<div class="col-xs-9">
																								<p> &nbsp;&nbsp;<span class="glyphicon  glyphicon-ok"></span>&nbsp;&nbsp;选下班级（<{$user_info.school.name}>）</p>
																								<p class="light">你所在的学校有线下班级，购买课程后可以在线选座位，随到随学</p>
																				</div>
																				<div class="col-xs-2 s_right" style="text-align:right; float:right">+<{$offline_subject.price}>元</div>
																</div>
																</if>
																<!--x在线报名-->
																<if condition="$offline_subject['apply'] gt 1">
																<div class="row <if condition="$select_apply eq 3">buy_select
																				</if>
																				"  id="buy_select_examination_fee"
																				<if condition="$offline_subject['apply'] eq 2">onclick="add_buy(this)"</if>
																				style="padding:10px 0px;cursor:pointer" price="<{$offline_subject.examination_fee}>" >
																				<div class="col-xs-9">
																								<p> &nbsp;&nbsp;<span class="glyphicon  glyphicon-ok"></span>&nbsp;&nbsp;在线报名 (<a w="0.8" data-type="modal" title="确认报名信息" target="registerForExamination" href="<{:U('Index/registerForExamination',array('class_id'=>$subject_info['subject_class'],'subjectid'=>$subject_info['subjectid']))}>">查看报名信息</a>)</p>
																								<p class="light">在线报名费用是用于考试费用，教育部门授权代收，全国统一价</p>
																								<input type="hidden" value="0" id="examination_id" />
																				</div>
																				<div class="col-xs-2 s_right" style="text-align:right; float:right">+<{$offline_subject.examination_fee}>元</div>
																</div>
																</if>
												</div>
												<div class="clearfix"></div>
								</div>
								<div class="block_div"  
    
        
								<if condition="$user_info['money'] elt 0">style="display:none"</if>
								>
								<div class="form-group" style="margin-bottom:0px">
												<div class="col-sm-12 control-label show_input"  for="formGroupInputLarge"> <span class="icon-icon-34" aria-hidden="true" style="color:#337ab7"></span> <font style="color:#337ab7">学币支付</font><span class="light"> (可用余额:￥<{$user_info['money']}>)</span></div>
												<div class="col-sm-12" style="display:none;margin:5px;">
																<input class="form-control" type="text" id="yie" max="<{$user_info['money']}>" onblur="check_yie(this)" onKeypress="return (/[\d.]/.test(String.fromCharCode(event.keyCode)))"  placeholder="输入使用学币">
												</div>
								</div>
								<div class="clearfix"></div>
				</div>
				<div class="block_div">
								<div class="form-group" style="margin-bottom:0px">
												<div class="col-sm-12 control-label show_input" for="formGroupInputLarge"> <span class="icon-icon-46" aria-hidden="true" style="color:#337ab7"></span> 优惠码 <span class="light">(最高可以优惠￥500)</span></div>
												<div class="col-sm-12" style="display:none;margin:5px;">
																<input class="form-control" type="text"   onblur="check_num(this)" value="<{$parent_user.school_num}>"  id="school_num" money="0" placeholder="输入优惠码">
												</div>
												<div class="col-sm-12" style="display:none;margin:5px;"  id="school_num_text"><font style="color:#337ab7">优惠￥20</font></div>
								</div>
								<div class="clearfix"></div>
				</div>
				<!--<div class="block_div">
								<div class="form-group" style="margin-bottom:0px">
												<div class="col-sm-12 control-label show_input" for="formGroupInputLarge">使用优惠口令 </div>
												<div class="col-sm-12" style="display:none;margin:5px;">
																<input class="form-control" type="text" onblur="check_num(this)" id="card_num"  money="0" placeholder="输入优惠口令">
												</div>
												<div class="col-sm-12"  style="display:none; margin:5px;" id="card_num_text"><font style="color:#337ab7">优惠￥20</font></div>
								</div>
								<div class="clearfix"></div>
				</div>-->
				<div class="box-btn block_div">
								<div class="form-group">
												<div class="row">
														 
																<div class="col-md-4" style="float:right">
																				<div align="right"><strong>实际需要支付：</strong><strong class="red f24 red"><span class="order_amount"><{$show_price}></span></strong> 元 <span class="light">(已省￥<font class="save_money">0</font>)</span></div>
																				<a data-type="none" style="width:100%; padding:10px" id="next_btn" onclick="buy_now()"  class="btn btn-primary border-radius-none mgt10"> 下一步 </a> </div>
												</div>
								</div>
								<div class="clearfix"></div>
				</div>
</div>
<script>
var buy_type=1;
var select_offline=<{$offline_subject['offline']|default="0"}>;
var goods_amount=<{$subject_info.price}>;
var subjectid="<{$subject_info.subjectid}>";
    $(".show_input").click(function(){
						$(this).next().toggle();
					})
					$(function(){
						   var school_num=$("#school_num");
						   if(school_num.val()){
										 $(school_num).parents(".show_input").trigger("click");
											check_num(school_num);
									}
								 get_order_amount();
						})
    </script>
</div>
